import yagmail


def send_mail(filepath):
    mail=yagmail.SMTP(user='2331104379@qq.com',password='krxbalyycwkxdjbj'
                      ,host='smtp.qq.com',encoding="utf-8")
    mail.send(to='2331104379@qq.com',subject='A3mall测试报告',contents='本次报告的是日志和报告文件'
              ,attachments=filepath)